<?php
$layout_asset = GxcHelpers::publishAsset(Yii::getPathOfAlias('common.layouts.default.assets'));
?>
<?php $this->renderPartial('common.layouts.default.header', array('page' => $page, 'layout_asset' => $layout_asset)); ?>      
<body>	
    
    
    <div id="page">
        <div id="header" class="container">
            <div class="">
                <h1 class="logo-info"><?php echo settings()->get('general', 'site_name'); ?></h1>
            </div>									
            <?php
            //Render Widget for Header Region
            $this->widget('BlockRenderWidget', array('page' => $page, 'region' => '0', 'layout_asset' => $layout_asset));
            ?>													
        </div><!-- header -->
        <div class="container" id="breadcrumbs">
            <?php
            $this->widget('cms.components.breadCrumb.BreadCrumb', array(
                'newCrumb' => array('name' => $this->getPageTitle(), 'url' => $this->getRoute())
            ));
            //Render Widget for BreadCrumb Region			
            //$this->widget('BlockRenderWidget',array('page'=>$page,'region'=>'5','layout_asset'=>$layout_asset)); 
            ?>
        </div>
        
        <div class="clear"></div>
        <div class="container" id="mainContainer">
            <div id="content">
                <?php
                //Render Widget for Content Region			
                $this->widget('BlockRenderWidget', array('page' => $page, 'region' => '1', 'layout_asset' => $layout_asset));
                ?>
            </div>
            <div id="sidebar">
                <?php
                //Render Widget for Content Region			
                $this->widget('BlockRenderWidget', array('page' => $page, 'region' => '2', 'layout_asset' => $layout_asset));
                ?>
            </div>
            <div class="clear"></div>				

        </div>



    </div><!-- page -->					

    <div id="footer">
        &copy; Copyright 2012 
        <?php
        //Render Widget for Footer Script
        $this->widget('BlockRenderWidget', array('page' => $page, 'region' => '4', 'layout_asset' => $layout_asset));
        ?>		
    </div><!-- footer -->

</body>
</html>